package com.csun.cmny.provider.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Building implements Serializable {
    private Integer buildingId;

    private Integer buildingType;

    private String buildingName;

    private String buildingNo;

    private Integer floorNum;

    private Integer homeId;

    private String buildingAlias;

    private Integer bedNoType;

    private Integer isBuildNo;

    private Integer isFloorNo;

    private String buildLink;

    private String floorLink;

    private String roomLink;

    private Integer valid;

    private Date createTime;

    private Date modifyTime;

    private Long modifier;

    private  Double leftpx;

    private Double rightpx;

    private Double uppx;

    private Double downpx;

    private List<Floor> floorList;

    private List<Room> roomList;

    private static final long serialVersionUID = 1L;

    public Integer getBuildingId() {
        return buildingId;
    }

    public void setBuildingId(Integer buildingId) {
        this.buildingId = buildingId;
    }

    public Integer getBuildingType() {
        return buildingType;
    }

    public void setBuildingType(Integer buildingType) {
        this.buildingType = buildingType;
    }

    public String getBuildingName() {
        return buildingName;
    }

    public void setBuildingName(String buildingName) {
        this.buildingName = buildingName;
    }

    public String getBuildingNo() {
        return buildingNo;
    }

    public void setBuildingNo(String buildingNo) {
        this.buildingNo = buildingNo;
    }

    public Integer getFloorNum() {
        return floorNum;
    }

    public void setFloorNum(Integer floorNum) {
        this.floorNum = floorNum;
    }

    public Integer getHomeId() {
        return homeId;
    }

    public void setHomeId(Integer homeId) {
        this.homeId = homeId;
    }

    public String getBuildingAlias() {
        return buildingAlias;
    }

    public void setBuildingAlias(String buildingAlias) {
        this.buildingAlias = buildingAlias;
    }

    public Integer getBedNoType() {
        return bedNoType;
    }

    public void setBedNoType(Integer bedNoType) {
        this.bedNoType = bedNoType;
    }

    public Integer getIsBuildNo() {
        return isBuildNo;
    }

    public void setIsBuildNo(Integer isBuildNo) {
        this.isBuildNo = isBuildNo;
    }

    public String getBuildLink() {
        return buildLink;
    }

    public void setBuildLink(String buildLink) {
        this.buildLink = buildLink;
    }

    public String getFloorLink() {
        return floorLink;
    }

    public void setFloorLink(String floorLink) {
        this.floorLink = floorLink;
    }

    public String getRoomLink() {
        return roomLink;
    }

    public void setRoomLink(String roomLink) {
        this.roomLink = roomLink;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Long getModifier() {
        return modifier;
    }

    public void setModifier(Long modifier) {
        this.modifier = modifier;
    }

    public Double getLeftpx() {
        return leftpx;
    }

    public void setLeftpx(Double leftpx) {
        this.leftpx = leftpx;
    }

    public Double getRightpx() {
        return rightpx;
    }

    public void setRightpx(Double rightpx) {
        this.rightpx = rightpx;
    }

    public Double getUppx() {
        return uppx;
    }

    public void setUppx(Double uppx) {
        this.uppx = uppx;
    }

    public Double getDownpx() {
        return downpx;
    }

    public void setDownpx(Double downpx) {
        this.downpx = downpx;
    }

    public List<Floor> getFloorList() {
        return floorList;
    }

    public void setFloorList(List<Floor> floorList) {
        this.floorList = floorList;
    }

    public List<Room> getRoomList() {
        return roomList;
    }

    public void setRoomList(List<Room> roomList) {
        this.roomList = roomList;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Building other = (Building) that;
        return (this.getBuildingId() == null ? other.getBuildingId() == null : this.getBuildingId().equals(other.getBuildingId()))
                && (this.getBuildingType() == null ? other.getBuildingType() == null : this.getBuildingType().equals(other.getBuildingType()))
            && (this.getBuildingName() == null ? other.getBuildingName() == null : this.getBuildingName().equals(other.getBuildingName()))
            && (this.getBuildingNo() == null ? other.getBuildingNo() == null : this.getBuildingNo().equals(other.getBuildingNo()))
            && (this.getFloorNum() == null ? other.getFloorNum() == null : this.getFloorNum().equals(other.getFloorNum()))
            && (this.getHomeId() == null ? other.getHomeId() == null : this.getHomeId().equals(other.getHomeId()))
            && (this.getBuildingAlias() == null ? other.getBuildingAlias() == null : this.getBuildingAlias().equals(other.getBuildingAlias()))
            && (this.getBedNoType() == null ? other.getBedNoType() == null : this.getBedNoType().equals(other.getBedNoType()))
            && (this.getIsBuildNo() == null ? other.getIsBuildNo() == null : this.getIsBuildNo().equals(other.getIsBuildNo()))
            && (this.getBuildLink() == null ? other.getBuildLink() == null : this.getBuildLink().equals(other.getBuildLink()))
            && (this.getFloorLink() == null ? other.getFloorLink() == null : this.getFloorLink().equals(other.getFloorLink()))
            && (this.getRoomLink() == null ? other.getRoomLink() == null : this.getRoomLink().equals(other.getRoomLink()))
            && (this.getValid() == null ? other.getValid() == null : this.getValid().equals(other.getValid()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getModifyTime() == null ? other.getModifyTime() == null : this.getModifyTime().equals(other.getModifyTime()))
            && (this.getModifier() == null ? other.getModifier() == null : this.getModifier().equals(other.getModifier()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getBuildingId() == null) ? 0 : getBuildingId().hashCode());
        result = prime * result + ((getBuildingType() == null) ? 0 : getBuildingType().hashCode());
        result = prime * result + ((getBuildingName() == null) ? 0 : getBuildingName().hashCode());
        result = prime * result + ((getBuildingNo() == null) ? 0 : getBuildingNo().hashCode());
        result = prime * result + ((getFloorNum() == null) ? 0 : getFloorNum().hashCode());
        result = prime * result + ((getHomeId() == null) ? 0 : getHomeId().hashCode());
        result = prime * result + ((getBuildingAlias() == null) ? 0 : getBuildingAlias().hashCode());
        result = prime * result + ((getBedNoType() == null) ? 0 : getBedNoType().hashCode());
        result = prime * result + ((getIsBuildNo() == null) ? 0 : getIsBuildNo().hashCode());
        result = prime * result + ((getBuildLink() == null) ? 0 : getBuildLink().hashCode());
        result = prime * result + ((getFloorLink() == null) ? 0 : getFloorLink().hashCode());
        result = prime * result + ((getRoomLink() == null) ? 0 : getRoomLink().hashCode());
        result = prime * result + ((getValid() == null) ? 0 : getValid().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getModifyTime() == null) ? 0 : getModifyTime().hashCode());
        result = prime * result + ((getModifier() == null) ? 0 : getModifier().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", buildingId=").append(buildingId);
        sb.append(", buildingType=").append(buildingType);
        sb.append(", buildingName=").append(buildingName);
        sb.append(", buildingNo=").append(buildingNo);
        sb.append(", floorNum=").append(floorNum);
        sb.append(", homeId=").append(homeId);
        sb.append(", buildingAlias=").append(buildingAlias);
        sb.append(", bedNoType=").append(bedNoType);
        sb.append(", isBuildNo=").append(isBuildNo);
        sb.append(", buildLink=").append(buildLink);
        sb.append(", floorLink=").append(floorLink);
        sb.append(", roomLink=").append(roomLink);
        sb.append(", valid=").append(valid);
        sb.append(", createTime=").append(createTime);
        sb.append(", modifyTime=").append(modifyTime);
        sb.append(", modifier=").append(modifier);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    public Integer getIsFloorNo() {
        return isFloorNo;
    }

    public void setIsFloorNo(Integer isFloorNo) {
        this.isFloorNo = isFloorNo;
    }
}